import request from '@/utils/request'
/**
 * 全局
 * @param {array} params 请求参数
 */
// 根据字典类型获取字典列表
export function getDictionaryTypeList(data) {
    return request({
        url: '/adminapi/Dictionary/getDictionaryTypeList',
        method: 'post',
        data: data
    })
}
// 获取活动可选商品列表
export function getActivityGoodsList(data) {
    return request({
        url: '/adminapi/activity/getGoodsList',
        method: 'post',
        data: data
    })
}
// 获取包括商户和平台商品的列表(已上架商品)
export function getGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/list',
        method: 'post',
        data: data
    })
}
// 获取包括商户和平台商品的详情(已上架商品)
export function getGooddetail(data) {
    return request({
        url: '/adminapi/goods/goods/detail',
        method: 'post',
        data: data
    })
}
// 获取供货商列表
export function querySupplierList(data) {
    return request({
        url: '/adminapi/Supplier/querySupplierList',
        method: 'post',
        data: data
    })
}
// 获取当前登录的个人信息
export function getInfo(data) {
    return request({
        url: '/adminapi/admin/profile',
        method: 'post',
        data
    })
}
// 获取供货商收货地址
export function getPublicSupplierAddressList(data) {
    return request({
        url: '/adminapi/Supplier/getPublicSupplierAddressList',
        method: 'post',
        data
    })
}
// 获取平台收货地址
export function getShippingAddress(data) {
    return request({
        url: '/adminapi/platform/shippingAddress/getList',
        method: 'post',
        data
    })
}
// 获取商户列表
export function getMerchantAllList(data) {
    return request({
        url: '/adminapi/merchant/getAllList',
        method: 'post',
        data
    })
}
// 获取平台商品列表
export function getPlatformGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/list',
        method: 'post',
        data
    })
}

// 获取满足条件的可参与用户列表
export function rangeCanJoinUserList(data) {
    return request({
        url: '/adminapi/activity/rangeCanJoinUserList',
        method: 'post',
        data
    })
}
// 获取重复参加活动的用户
export function rangeHasJoinUserList(data) {
    return request({
        url: '/adminapi/activity/rangeHasJoinUserList',
        method: 'post',
        data
    })
}
// 获取黑名单活动的用户
export function rangeBlackUserList(data) {
    return request({
        url: '/adminapi/activity/rangeBlackUserList',
        method: 'post',
        data
    })
}
// 获取配置商品接口
export function listGoodsIds(data) {
    return request({
        url: '/adminapi/goods/goods/listGoodsIds',
        method: 'post',
        data
    })
}
//获取商品配置
export function listGood(data) {
    return request({
        url: '/adminapi/gain/v3/list',
        method: 'post',
        data
    })
}
//积分分销商品配置
export function listfenxiao(data) {
    return request({
        url: '/adminapi/retail/v4/goods/goodsList',
        method: 'post',
        data
    })
}


// 获取数据大屏
export function getScreen(data) {
    return request({
        url: '/adminapi/home/getScreen',
        method: 'post',
        data
    })
}
// 获取供应商角色大屏
export function SupplierGetScreen(data) {
    return request({
        url: '/adminapi/home/SupplierGetScreen',
        method: 'post',
        data
    })
}
